<form name="contractEditProductForm" class="form-horizontal" novalidate style="width:500px;">
    <div class="form-group mt10 clearfix">
        <span class="col-sm-6 control-label">产品名称</span>

        <div class="col-sm-18">
            <input select2 required ng-model="data.application_id" name="application_id" select2-model="ddl2Project"
                   config="ddlConfigProjects" class="form-control" type="text" placeholder="产品名称"/>
            <span role="alert"
                  ng-show="(contractEditProductForm.$submitted || contractEditProductForm.application_id.$touched) && contractEditProductForm.application_id.$error.required"
                  class="error ng-hide c-red lh30">请选择产品名称</span>
        </div>
    </div>
    <div class="form-group mt10 clearfix">
        <span class="col-sm-6 control-label">授权标准</span>

        <div class="col-sm-18">
            <input type="text" ng-disabled="1" ng-model="data.unit" class="form-control"
                   placeholder="授权标准">
        </div>
    </div>
    <div class="form-group mt10 clearfix">
        <span class="col-sm-6 control-label">产品类型</span>

        <div class="col-sm-18">
            <select class="form-control" ng-model="contype">
                <option ng-repeat="contype in contypes">{{contype}}</option>
            </select>
        </div>
    </div>
    <div class="form-group mt10 clearfix">
        <span class="col-sm-6 control-label">标准单价</span>

        <div class="col-sm-18">
            <input type="number" ng-model="data.price" class="form-control"
                   placeholder="标准单价" required number min=0 id="price">
            <span role="alert"
                  ng-show="(contractEditProductForm.$submitted || contractEditProductForm.price.$touched) && contractEditProductForm.price.$error.required"
                  class="error ng-hide c-red lh30">单价不能为空</span>
            <span role="alert"
                  ng-show="(contractEditProductForm.$submitted || contractEditProductForm.price.$touched) && contractEditProductForm.price.$error.number"
                  class="error ng-hide c-red lh30">单价必须是数值类型</span>
            <span role="alert"
                  ng-show="(contractEditProductForm.$submitted || contractEditProductForm.price.$touched) && contractEditProductForm.price.$error.min"
                  class="error ng-hide c-red lh30">单价必须大于或等于0</span>

        </div>
    </div>
    <div class="form-group mt10 clearfix">
        <span class="col-sm-6 control-label">购买数量</span>

        <div class="col-sm-18">
            <input type="number" ng-model="data.authorization_numeric" class="form-control"
                   required number min=0
                   id = 'authorization_numeric' name = 'authorization_numeric'
                   placeholder="购买数量">
            <span role="alert"
                  ng-show="(contractEditProductForm.$submitted || contractEditProductForm.authorization_numeric.$touched) && contractEditProductForm.authorization_numeric.$error.required"
                  class="error ng-hide c-red lh30">购买数量不能为空</span>
            <span role="alert"
                  ng-show="(contractEditProductForm.$submitted || contractEditProductForm.authorization_numeric.$touched) && contractEditProductForm.authorization_numeric.$error.number"
                  class="error ng-hide c-red lh30">购买数量必须是数值类型</span>
            <span role="alert"
                  ng-show="(contractEditProductForm.$submitted || contractEditProductForm.authorization_numeric.$touched) && contractEditProductForm.authorization_numeric.$error.min"
                  class="error ng-hide c-red lh30">购买数量必须大于或等于0</span>
        </div>
    </div>
    <div class="form-group mt10 clearfix">
        <span class="col-sm-6 control-label">标准金额</span>

        <div class="col-sm-18">
            <input type="number" ng-model="data.amount" name="amount" class="form-control"
                   id="amount"  required number min=0
                   placeholder="标准金额">

            <span role="alert"
                  ng-show="(contractEditProductForm.$submitted || contractEditProductForm.amount.$touched) && contractEditProductForm.amount.$error.required"
                  class="error ng-hide c-red lh30">标准金额不能为空</span>
            <span role="alert"
                  ng-show=" contractEditProductForm.amount.$error.number"
                  class="error ng-hide c-red lh30">标准金额必须是数值类型</span>
            <span role="alert"
                  ng-show=" contractEditProductForm.amount.$error.min"
                  class="error ng-hide c-red lh30">标准金额必须大于等于0</span>
        </div>
    </div>
    <div class="form-group mt10 clearfix">
        <span class="col-sm-6 control-label">应结算金额</span>

        <div class="col-sm-18">
            <input type="number" ng-model="data.balance_should_amount" name="balance_should_amount" class="form-control"
                   id="balance_should_amount"  required number min=0
                   placeholder="应结算金额">
        </div>
    </div>
</form>
